export const setCardBufferSort = (arr) => {
	let obj = {}
	for (let i of arr) {
		if (obj[i.value]) {
			obj[i.value]++
		} else {
			obj[i.value] = 1;
		}
	}
	for (let i = 0; i < arr.length; i++) {
		arr[i].count = obj[arr[i].value]
	}
	arr.sort(function(a, b) {
		return b.value - a.value;
	})
	arr.sort(function(a, b) {
		return b.count - a.count;
	})
}
